<?php

class loginadmin_M extends CI_Model {
    
    function __construct()
    {
        parent::__construct();
    }
    
    function check_login($username, $password)
    {
        $query = $this->db->get_where('tbl_admin',array('username'=>$username,'password'=>$password));
        return $query;
    }
}

?>
